package ecweb.dao;

import java.util.List;

import ecweb.dal.DatabaseSession;
import ecweb.domain.GoodInOrder;
import ecweb.exception.DatabaseException;

public interface IGoodInOrderDao {

	GoodInOrder getByUserGoodId(DatabaseSession dbses, long orderId, long goodId)
			throws DatabaseException;
	
	List<GoodInOrder> getGoodInOrderList(DatabaseSession dbses,
			long orderIdFilter, long goodIdFilter,
			long limitStart, long limitLength)
					throws DatabaseException;
	
	long getGoodInOrderCount(DatabaseSession dbses,
			long orderIdFilter, long goodIdFilter)
					throws DatabaseException;
	
	boolean updateByUserGoodId(DatabaseSession dbses, GoodInOrder gio)
			throws DatabaseException;
	
	void add(DatabaseSession dbses, GoodInOrder gio)
			throws DatabaseException;
	
	boolean delete(DatabaseSession dbses, long orderId, long goodId)
			throws DatabaseException;
}
